﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200135B RID: 4955
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakenChallengeRewardInfo : IMessage<TakenChallengeRewardInfo>, IMessage, IEquatable<TakenChallengeRewardInfo>, IDeepCloneable<TakenChallengeRewardInfo>, IBufferMessage
	{
		// Token: 0x17003E85 RID: 16005
		// (get) Token: 0x0600DDE2 RID: 56802 RVA: 0x00252161 File Offset: 0x00250361
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakenChallengeRewardInfo> Parser
		{
			get
			{
				return TakenChallengeRewardInfo._parser;
			}
		}

		// Token: 0x17003E86 RID: 16006
		// (get) Token: 0x0600DDE3 RID: 56803 RVA: 0x00252168 File Offset: 0x00250368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakenChallengeRewardInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E87 RID: 16007
		// (get) Token: 0x0600DDE4 RID: 56804 RVA: 0x0025217A File Offset: 0x0025037A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakenChallengeRewardInfo.Descriptor;
			}
		}

		// Token: 0x0600DDE5 RID: 56805 RVA: 0x00252181 File Offset: 0x00250381
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakenChallengeRewardInfo()
		{
		}

		// Token: 0x0600DDE6 RID: 56806 RVA: 0x0025218C File Offset: 0x0025038C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakenChallengeRewardInfo(TakenChallengeRewardInfo other) : this()
		{
			this.starCount_ = other.starCount_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DDE7 RID: 56807 RVA: 0x002521D8 File Offset: 0x002503D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakenChallengeRewardInfo Clone()
		{
			return new TakenChallengeRewardInfo(this);
		}

		// Token: 0x17003E88 RID: 16008
		// (get) Token: 0x0600DDE8 RID: 56808 RVA: 0x002521E0 File Offset: 0x002503E0
		// (set) Token: 0x0600DDE9 RID: 56809 RVA: 0x002521E8 File Offset: 0x002503E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StarCount
		{
			get
			{
				return this.starCount_;
			}
			set
			{
				this.starCount_ = value;
			}
		}

		// Token: 0x17003E89 RID: 16009
		// (get) Token: 0x0600DDEA RID: 56810 RVA: 0x002521F1 File Offset: 0x002503F1
		// (set) Token: 0x0600DDEB RID: 56811 RVA: 0x002521F9 File Offset: 0x002503F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DDEC RID: 56812 RVA: 0x00252202 File Offset: 0x00250402
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakenChallengeRewardInfo);
		}

		// Token: 0x0600DDED RID: 56813 RVA: 0x00252210 File Offset: 0x00250410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakenChallengeRewardInfo other)
		{
			return other != null && (other == this || (this.StarCount == other.StarCount && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DDEE RID: 56814 RVA: 0x00252260 File Offset: 0x00250460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.StarCount != 0U)
			{
				num ^= this.StarCount.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DDEF RID: 56815 RVA: 0x002522B5 File Offset: 0x002504B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DDF0 RID: 56816 RVA: 0x002522BD File Offset: 0x002504BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DDF1 RID: 56817 RVA: 0x002522C8 File Offset: 0x002504C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.StarCount != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.StarCount);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DDF2 RID: 56818 RVA: 0x00252324 File Offset: 0x00250524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.StarCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StarCount);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DDF3 RID: 56819 RVA: 0x0025237C File Offset: 0x0025057C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakenChallengeRewardInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.StarCount != 0U)
			{
				this.StarCount = other.StarCount;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DDF4 RID: 56820 RVA: 0x002523E4 File Offset: 0x002505E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DDF5 RID: 56821 RVA: 0x002523F0 File Offset: 0x002505F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 50U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.StarCount = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400580E RID: 22542
		private static readonly MessageParser<TakenChallengeRewardInfo> _parser = new MessageParser<TakenChallengeRewardInfo>(() => new TakenChallengeRewardInfo());

		// Token: 0x0400580F RID: 22543
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005810 RID: 22544
		public const int StarCountFieldNumber = 2;

		// Token: 0x04005811 RID: 22545
		private uint starCount_;

		// Token: 0x04005812 RID: 22546
		public const int RewardFieldNumber = 6;

		// Token: 0x04005813 RID: 22547
		private ItemList reward_;
	}
}
